package com.estate.system.domain.vo;

import com.estate.system.domain.report.saledepartmentmanager.listinganalysis.ComparisonAnalysis;

import java.time.LocalDate;
import java.util.HashMap;
import java.util.Map;

public class ComparisonAnalysisGenerator {
    
    /**
     * 生成样例数据Map
     * key: 日期字符串 (格式: "2025-09-01")
     * value: DailyData对象，包含sold, inventory, newData三个属性
     */
    public static Map<String, ComparisonAnalysis> generateDataMap() {
        Map<String, ComparisonAnalysis> dataMap = new HashMap<>();
        
        // 根据图片数据添加记录
        dataMap.put("2025-09-01", new ComparisonAnalysis(100, 100, 0));
        dataMap.put("2025-09-06", new ComparisonAnalysis(150, 150, 0));
        dataMap.put("2025-09-12", new ComparisonAnalysis(100, 100, 0));
        dataMap.put("2025-09-18", new ComparisonAnalysis(100, 100, 0));
        dataMap.put("2025-09-30", new ComparisonAnalysis(100, 100, 0));
        
        return dataMap;
    }
    
}